# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=komikku
pkgver=1.33.0
pkgrel=0
pkgdesc="manga reader for GNOME"
url="https://gitlab.com/valos/Komikku"
arch="noarch !s390x" # limited by blueprint-compiler
license="GPL-3.0-only"
depends="
	libadwaita
	py3-beautifulsoup4
	py3-brotli
	py3-colorthief
	py3-dateparser
	py3-emoji
	py3-gobject3
	py3-keyring
	py3-lxml
	py3-magic
	py3-natsort
	py3-piexif
	py3-pillow
	py3-pure_protobuf
	py3-rarfile
	py3-requests
	py3-unidecode
	webkit2gtk-6.0
	"
makedepends="
	blueprint-compiler-dev
	cmake
	desktop-file-utils
	gobject-introspection-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
subpackages="$pkgname-lang $pkgname-pyc"
source="https://gitlab.com/valos/Komikku/-/archive/v$pkgver/Komikku-v$pkgver.tar.gz"
builddir="$srcdir/Komikku-v$pkgver"

build() {
	abuild-meson build

	ninja -C build
}

check() {
	meson test -C build --print-errorlog
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}

sha512sums="
4f5be20cdd152249dfea7f860bc134268082a830194ebf0ece735fd4305f0362ae83234bfbab2f34239201e8c98cbbeb2a7a9f2633c557dfe1433dc804e07fe1  Komikku-v1.33.0.tar.gz
"
